<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\service\landlord\Game;
use app\common\service\RedisMake;
use app\common\service\Socket;

class Index extends Frontend
{
    protected $noNeedLogin = ['test','redis'];
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {

        return $this->view->fetch();
    }

    public function test()
    {
        $game = new Game($this->app);
        $joker = $game->start("landlord02");
        var_dump($joker);

    }

    public function redis()
    {
       $redis = RedisMake::getRedis();
       $res = $redis->getRange("name",0,3);
       var_dump($res);

    }

}
